<html>
<head>
<script>
function store(){
	chrome.tabs.executeScript(null,
		{code:"CLIP_HOST='http://note.youdao.com/yws';" +
			  "try{" + 
					"var x=document.createElement('SCRIPT'); " + 
					"x.type='text/javascript';" +
					"x.src=CLIP_HOST+'/YNoteClipper.js?'+(new Date().getTime()/100000);" +
					"x.charset='utf-8';" +
					"document.getElementsByTagName('head')[0].appendChild(x);" +
			   "}" +
			   "catch(e){" +
					"alert(e);" +
				"}"});
}

chrome.browserAction.onClicked.addListener(store);
store();
</script>
</head>
</html>
